<?php
/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

include("sqlconnect.php");
include("sqlgenerator.php");
$debug = false;

db_connect();

$query = get_centre_list();
if ($debug)
    echo 'Query: ' . $query;
$result = db_query($query);

if ($debug)
    echo 'Query Result: ' .$resut;

echo "<?xml version=\"1.0\" encoding=\"ISO-8859-1\"?>";
echo "<centres>";
while($row = mysql_fetch_array($result))
  {
    echo "<centre>";
    echo "<name>" . $row['name'] . "</name>";
    echo "<code>" . $row['code'] . "</code>";
    echo "</centre>";
  }
echo "</centres>";
?>
